package yx.model;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Version;
import org.hibernate.annotations.GenericGenerator;

/**
 * BsStudentOther entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "bs_student_other", catalog = "eportal")
public class BsStudentOther implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer version;
	private Integer studentId;
	private String identityType;
	private String identityNo;
	private String identityName;
	private String birthday;
	private String birthplace;
	private String bloodType;
	private String nation;
	private String politicalStatus;
	private String homeAddress;
	private String postcode;
	private String deleteFlag;
	private Integer optId;
	private Timestamp optTime;

	// Constructors

	/** default constructor */
	public BsStudentOther() {
	}

	/** full constructor */
	public BsStudentOther(Integer studentId, String identityType, String identityNo, String identityName, String birthday, String birthplace, String bloodType, String nation, String politicalStatus, String homeAddress, String postcode, String deleteFlag, Integer optId, Timestamp optTime) {
		this.studentId = studentId;
		this.identityType = identityType;
		this.identityNo = identityNo;
		this.identityName = identityName;
		this.birthday = birthday;
		this.birthplace = birthplace;
		this.bloodType = bloodType;
		this.nation = nation;
		this.politicalStatus = politicalStatus;
		this.homeAddress = homeAddress;
		this.postcode = postcode;
		this.deleteFlag = deleteFlag;
		this.optId = optId;
		this.optTime = optTime;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "increment")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Version
	@Column(name = "VERSION")
	public Integer getVersion() {
		return this.version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	@Column(name = "STUDENT_ID")
	public Integer getStudentId() {
		return this.studentId;
	}

	public void setStudentId(Integer studentId) {
		this.studentId = studentId;
	}

	@Column(name = "IDENTITY_TYPE", length = 2)
	public String getIdentityType() {
		return this.identityType;
	}

	public void setIdentityType(String identityType) {
		this.identityType = identityType;
	}

	@Column(name = "IDENTITY_NO", length = 32)
	public String getIdentityNo() {
		return this.identityNo;
	}

	public void setIdentityNo(String identityNo) {
		this.identityNo = identityNo;
	}

	@Column(name = "IDENTITY_NAME", length = 32)
	public String getIdentityName() {
		return this.identityName;
	}

	public void setIdentityName(String identityName) {
		this.identityName = identityName;
	}

	@Column(name = "BIRTHDAY", length = 32)
	public String getBirthday() {
		return this.birthday;
	}

	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}

	@Column(name = "BIRTHPLACE")
	public String getBirthplace() {
		return this.birthplace;
	}

	public void setBirthplace(String birthplace) {
		this.birthplace = birthplace;
	}

	@Column(name = "BLOOD_TYPE", length = 2)
	public String getBloodType() {
		return this.bloodType;
	}

	public void setBloodType(String bloodType) {
		this.bloodType = bloodType;
	}

	@Column(name = "NATION", length = 32)
	public String getNation() {
		return this.nation;
	}

	public void setNation(String nation) {
		this.nation = nation;
	}

	@Column(name = "POLITICAL_STATUS", length = 2)
	public String getPoliticalStatus() {
		return this.politicalStatus;
	}

	public void setPoliticalStatus(String politicalStatus) {
		this.politicalStatus = politicalStatus;
	}

	@Column(name = "HOME_ADDRESS")
	public String getHomeAddress() {
		return this.homeAddress;
	}

	public void setHomeAddress(String homeAddress) {
		this.homeAddress = homeAddress;
	}

	@Column(name = "POSTCODE", length = 6)
	public String getPostcode() {
		return this.postcode;
	}

	public void setPostcode(String postcode) {
		this.postcode = postcode;
	}

	@Column(name = "DELETE_FLAG", length = 1)
	public String getDeleteFlag() {
		return this.deleteFlag;
	}

	public void setDeleteFlag(String deleteFlag) {
		this.deleteFlag = deleteFlag;
	}

	@Column(name = "OPT_ID")
	public Integer getOptId() {
		return this.optId;
	}

	public void setOptId(Integer optId) {
		this.optId = optId;
	}

	@Column(name = "OPT_TIME", length = 19)
	public Timestamp getOptTime() {
		return this.optTime;
	}

	public void setOptTime(Timestamp optTime) {
		this.optTime = optTime;
	}

}